package com.ywjt.pinkelephant.home.adapter;

import android.graphics.Color;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.pinkelephant.R;
import com.ywjt.pinkelephant.widget.CircleView;

import java.util.List;

public class CircleColorsAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public CircleColorsAdapter(@Nullable List<String> data) {
        super(R.layout.item_popu_color, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        CircleView ivCircle=helper.getView(R.id.ivCircle);
        ivCircle.init(Color.parseColor("#"+item));
    }
}
